import { IsNotEmpty } from 'class-validator';

export class CreateVisitDto {
  @IsNotEmpty({
    message: 'ip不能为空',
  })
  ip: string;

  userId: number;

  username: string;

  @IsNotEmpty({
    message: 'url不能为空',
  })
  url: string;

  @IsNotEmpty({
    message: '浏览器不能为空',
  })
  browser: string;

  @IsNotEmpty({
    message: '系统不能为空',
  })
  system: string;
}
